package org.qh.common.mq.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "mq")
public class MqProperties {
    /**
     * 是否开启
     */
    private Boolean enabled;
    /**
     * 环境变量
     */
    private String env;

    // 添加连接配置
    private String host = "127.0.0.1";
    private int port = 5672;
    private String username = "guest";
    private String password = "guest";
    private String virtualHost = "/";

    /**
     * 订单交换机
     */
    private String orderExchange;
    /**
     * 订单队列
     */
    private String orderQueue;
    /**
     * 订单路由key
     */
    private String orderRoutingKey;
    /**
     * 死信交换机
     */
    private String dlxExchange;
    /**
     * 死信队列
     */
    private String dlxQueue;
    /**
     * 死信路由
     */
    private String dlxRoutingKey;

    // ========== card =========================

    /**
     * 商品过期交换机
     */
    private String cardExpirationExchange;

    /**
     * 商品过期队列
     */
    private String cardExpirationQueue;
    /**
     * 商品过期路由
     */
    private String cardExpirationRoutingKey;

    /**
     * 商品过期死信交换机
     */
    private String cardExpirationDlx;

    /**
     * 商品过期死信队列
     */
    private String cardExpirationDlq;

    /**
     * 商品过期死信路由
     */
    private String cardExpirationDlRoutingKey;

   // ========== VIP =========================

    /**
     * 商品过期交换机
     */
    private String vipExpirationExchange;

    /**
     * 商品过期队列
     */
    private String vipExpirationQueue;
    /**
     * 商品过期路由
     */
    private String vipExpirationRoutingKey;

    /**
     * 商品过期死信交换机
     */
    private String vipExpirationDlx;

    /**
     * 商品过期死信队列
     */
    private String vipExpirationDlq;

    /**
     * 商品过期死信路由
     */
    private String vipExpirationDlRoutingKey;
}
